package com.bootdo.system.service.impl;

import com.bootdo.common.utils.PageUtils;
import com.bootdo.common.utils.Query;
import com.bootdo.system.dao.DyPayDao;
import com.bootdo.system.service.DyPayOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @create 2021-03-06 15-59
 */
@Service
public class DyPayOrderServiceImpl implements DyPayOrderService {

    @Autowired
    private DyPayDao payDao;

    @Override
    public PageUtils selectPayOrder(Map map) {
        Query query = new Query(map);
        List list = payDao.selectOrderList(query);
        int i = payDao.selectCount(query);
        PageUtils pageUtils = new PageUtils(list,i);
        return pageUtils;
    }
}
